/*
 * tournament.h
 *
 *  Created on: 25/02/2012
 *      Author: Manuel Cortés / Juan Castellanos
 */
 
#ifndef TOURNAMENT_H_
#define TOURNAMENT_H_
 
#include "team.h"
#include <cstdlib>
#include <iostream>
#include <string>
#include <stdlib.h>
#include <fstream>

using namespace std;

#define HOME	0
#define AWAY	1
#define DEBUG cout << "Debug Point" << endl;
 
class tournament
{
	private:
		team *competitors;
		int number_competitors;
	public:
		tournament( void);
		tournament( team *competitors, int number_competitors );
		~tournament( void );
		void doubleRoundRobin( void );
		/* Set Methods */
		void setCompetitors( team* competitors );
		void setNumberCompetitors( int number_competitors );
		/* Get Methods */
		team* getCompetitors( void );
		int getNumberCompetitors( void );
		/* Other functions */
		void print( void );		
 		static int readFile( team *competitors, string filePath );
 		static int writeFile( string filePath );
 };
 
 #endif /* TOURNAMENT_H_ */
